home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1996 April / Software of the Month Club 1996 April.iso / pc / win / edu / profan2 / demo.lzh / INTRO.TXT < prev    next >
Encoding:
Text File  |  1995-07-31  |  4.9 KB  |  92 lines

  1. INTRODUCTION
  2.  
  3. PROFAN▓ is a batch language and a complete programming language in one! PROFAN▓ version
  4. 3.0 or higher is also a data base developing system. PROFAN▓ contains both: Interpreter 
  5. and a fast compiler! 
  6.  
  7. Of course, there are batch programming languages under Windows like "WinBatch" and "Oriel". 
  8. "WinBatch" is a very powerful language, but practically without any graphic processing 
  9. ability. "WinBatch" by "WilsonWare" (USA) is available as shareware or as a complete version 
  10. as part of Norton Desktop for Windows (under a different name). "Oriel" has various graphic 
  11. commands but limited other commands. There is no possibility for input and you cannot read 
  12. files from a hard drive or disk. 
  13. Neither language includes a compiler. Applications can only be used if the user 
  14. is the registered owner of the language package. Purchasing a separate compiler can 
  15. cost around US$ 400! 
  16.  
  17. Goals for PROFAN▓: 
  18.  
  19. * Simple syntax, also for beginners, based on BASIC 
  20. * Includes all graphic options provided by "Oriel"... and more 
  21. * Various file and management functionalities 
  22. * Complete application size is smaller than 200 kB, no other DLLs 
  23. or other files. 
  24. * Ability to pass on applications without additional costs. 
  25.  
  26. The latest version is "PROFAN▓ 3.3". PROFAN 3.3 is a complete programming language. 
  27. The beginner will find many familiar BASIC commands like: 
  28. PRINT, LOCATE, CLS, INPUT, GOTO, GOSUB, RETURN, IF, WHILE, WEND,
  29. SOUND, PRINT #n, INPUT #n, END, LET, ... 
  30.  
  31. Also the variables and constants are handled in most cases similar to BASIC. 
  32.  
  33. We adapted the concept of PASCAL for file operations: 
  34. ASSIGN, RESET, REWRITE, APPEND, RENAME, ERASE, CLOSE, ... 
  35. Use COPY to copy files and CHDIR, MKDIR and RMDIR to manage your directories.
  36. Special functions provide information about the current drive, path and more. 
  37. In addition you will find WINDOWS specific tools like menus, list boxes, input boxes, 
  38. load and save dialogs and much more. 
  39.  
  40. The biggest advantage are of course the extensive graphical commands that access 
  41. directly the Windows graphical core: USEBRUSH, USEFONT, USEPEN, USEICON,
  42. COPYBMP, RECTANGLE, ROUNDRECT, ELLIPSE, ARC, PIE, DRAWTEXT, ... 
  43. Use LOADBMP and SAVEBMP to load, edit and save bitmap graphics. 
  44.  
  45. Another addition was necessary with Windows 3.1:
  46. Triggering all multi-media devices and playback of WAV sound files with the sound card. 
  47. Playback of music CD's is no problem as well as playing background music/sound 
  48. for games or playback of Microsofts Video for Windows: MCISEND, PLAYSOUND, ... 
  49.  
  50. PROFAN version 3.0 or higher supports user defined dialogs and various database 
  51. functions for reading and editing DBase III compatible databases. It is possible 
  52. to control "foreign" windows and to send messages and keyboard codes. 
  53. Some new commands and an option for linking allows you to easily program 
  54. screen savers that can be integrated in the Windows desktop. 
  55.  
  56. The experienced user will probably not use the text- oriented commands of BASIC 
  57. for soft copies but the new and powerful Windows commands. 
  58.  
  59. Structured programming is possible because only one command is allowed for each 
  60. line and various control structures are available:
  61. IF ... ELSEIF ... ELSE ... ENDIF, CASE, WHILE ... WEND, GOSUB ... RETURN. 
  62. Use PROC ... ENDPROC to define procedures (like in PASCAL) and DEF to define 
  63. new functions. Procedures and Functions have local variables. Indents and empty 
  64. lines are valid. 
  65.  
  66. The compiler in PROFAN▓ can create a very compact intercode that can be started with 
  67. a Runtime Module. We increased the performance speed of compiled programs for 
  68. version 3.0. The linker is the last important part of the complete programming language 
  69. that links Runtime Module and intercode to a independent EXE file or screen saver. 
  70. And because the Runtime Module is only a little bigger than 170 kB Windows applications 
  71. below 200 kB are possible. A finished PROFAN application can still function as 
  72. Runtime Module for more intercode files and since it is possible to transfer parameter, 
  73. modularized programming is no problem. The most valuable part is the development 
  74. environment PROFED that was again enhanced for this version: font selection, 
  75. project management and display of current line number...
  76.  
  77. And here the famous "Hello World" program in Profan: 
  78.  
  79.   Print "Hello World" 
  80.   WaitKey 
  81.   End 
  82.  
  83. That's all! The "WaitKey" gives you the time to watch the result-- 
  84. A complete program in a Windows screen, a complete Windows application. 
  85. To exit the program use the keyboard or the corresponding windows function.
  86.  
  87. The combination of interpreter and compiler gives you a very interesting 
  88. advantage. You develop and test the program in interpreter mode. When you are 
  89. finished use the compiler for the necessary drive! We recommend compiling only 
  90. a tested program, because the elapsed time error message usually provides less 
  91. information than the interpreter. 
  92.